package mmorpg.core.attribute;

import java.util.Map;

/**
 * @Description:
 * @Author: Mark
 * @CreateDate: 2021/7/11 16:45
 * @Copyright : 豆浆油条个人非正式工作室
 */
public class ResourceUtils {

    public static void cal(ResourceSysType resourceSysType, Map<ResourceType, Long> resourceMap){
        for (Map.Entry<ResourceType, Long> entry : resourceMap.entrySet()) {
            ResourceType resourceType = entry.getKey();
            Long value = entry.getValue();
            //更新系统的属性
            resourceSysType.alert(resourceType,value);
            //更新玩家的属性
        }
    }
}
